package com.qd.common.flow.domain.event;

import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.node.ObjectNode;
import com.qd.common.flow.enums.FlowEventType;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 〈一句话功能简述〉<br> 
 *
 * @author sjk
 * @create 2024-02-21 15:34
 * @since 1.0.0
 */
@Data
public class FlowTaskStateDTO {
    /**
     * 流程编码
     */
    private String processCode;
    /**
     * 操作类型
     */
    private String operatorType;
    /**
     * 业务ID
     */
    private String bid;
    /**
     * 审批状态
     */
    private Integer approvalStatus;
    /**
     * 审批结果
     */
    private String approvalResult;
    /**
     * 审批时间
     */
    private LocalDateTime approvalTime;
    /**
     * 事件
     */
    private FlowEventType flowEventType;
    /**
     * 扩展信息
     */
    private JsonNode extendJson;

    public void freeData() {
        this.processCode = null;
        this.operatorType = null;
        this.bid = null;
        this.approvalStatus = null;
        this.flowEventType = null;
        this.approvalTime = null;
        this.approvalResult = null;
        this.extendJson = null;
    }
}